import request from '../utils/request-new'

export type assistantType = '0' | '1' | '2'

export const getAssistantList = (data: {
  pageNum?: number,
  pageSize?: number,
  title?: string,
  type: assistantType
}) => {
  return request<any>({
    url: '/assistant/list',
    method: 'GET',
    data
  })
}

export const getTopAssistantList = () => {
  return request({
    url: '/assistant/topList',
    method: 'GET'
  })
}

export const getRecommendListByTitle = (data: string) => {
  return request({
    url: '/assistant/recommendList',
    method: 'POST',
    data
  })
}

